{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nvar genBaseStyle = function genBaseStyle(token) {\n  var _Object$assign, _Object$assign2;\n  var antCls = token.antCls,\n    componentCls = token.componentCls,\n    iconCls = token.iconCls,\n    avatarBg = token.avatarBg,\n    avatarColor = token.avatarColor,\n    avatarSizeBase = token.avatarSizeBase,\n    avatarSizeLG = token.avatarSizeLG,\n    avatarSizeSM = token.avatarSizeSM,\n    avatarFontSizeBase = token.avatarFontSizeBase,\n    avatarFontSizeLG = token.avatarFontSizeLG,\n    avatarFontSizeSM = token.avatarFontSizeSM,\n    borderRadius = token.borderRadius,\n    borderRadiusLG = token.borderRadiusLG,\n    borderRadiusSM = token.borderRadiusSM,\n    lineWidth = token.lineWidth,\n    lineType = token.lineType;\n  // Avatar size style\n  var avatarSizeStyle = function avatarSizeStyle(size, fontSize, radius) {\n    var _ref;\n    return _ref = {\n      width: size,\n      height: size,\n      lineHeight: \"\".concat(size - lineWidth * 2, \"px\"),\n      borderRadius: '50%'\n    }, _defineProperty(_ref, \"&\".concat(componentCls, \"-square\"), {\n      borderRadius: radius\n    }), _defineProperty(_ref, \"\".concat(componentCls, \"-string\"), {\n      position: 'absolute',\n      left: {\n        _skip_check_: true,\n        value: '50%'\n      },\n      transformOrigin: '0 center'\n    }), _defineProperty(_ref, \"&\".concat(componentCls, \"-icon\"), _defineProperty({\n      fontSize: fontSize\n    }, \"> \".concat(iconCls), {\n      margin: 0\n    })), _ref;\n  };\n  return _defineProperty({}, componentCls, Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    position: 'relative',\n    display: 'inline-block',\n    overflow: 'hidden',\n    color: avatarColor,\n    whiteSpace: 'nowrap',\n    textAlign: 'center',\n    verticalAlign: 'middle',\n    background: avatarBg,\n    border: \"\".concat(lineWidth, \"px \").concat(lineType, \" transparent\")\n  }, _defineProperty(_Object$assign, \"&-image\", {\n    background: 'transparent'\n  }), _defineProperty(_Object$assign, \"\".concat(antCls, \"-image-img\"), {\n    display: 'block'\n  }), _Object$assign)), avatarSizeStyle(avatarSizeBase, avatarFontSizeBase, borderRadius)), (_Object$assign2 = {}, _defineProperty(_Object$assign2, \"&-lg\", Object.assign({}, avatarSizeStyle(avatarSizeLG, avatarFontSizeLG, borderRadiusLG))), _defineProperty(_Object$assign2, \"&-sm\", Object.assign({}, avatarSizeStyle(avatarSizeSM, avatarFontSizeSM, borderRadiusSM))), _defineProperty(_Object$assign2, '> img', {\n    display: 'block',\n    width: '100%',\n    height: '100%',\n    objectFit: 'cover'\n  }), _Object$assign2)));\n};\nvar genGroupStyle = function genGroupStyle(token) {\n  var _$concat3;\n  var componentCls = token.componentCls,\n    avatarGroupBorderColor = token.avatarGroupBorderColor,\n    avatarGroupOverlapping = token.avatarGroupOverlapping,\n    avatarGroupSpace = token.avatarGroupSpace;\n  return _defineProperty({}, \"\".concat(componentCls, \"-group\"), (_$concat3 = {\n    display: 'inline-flex'\n  }, _defineProperty(_$concat3, \"\".concat(componentCls), _defineProperty({\n    borderColor: avatarGroupBorderColor\n  }, \"&:not(:first-child)\", {\n    marginInlineStart: -avatarGroupOverlapping\n  })), _defineProperty(_$concat3, \"&-popover\", _defineProperty({}, \"\".concat(componentCls, \" + \").concat(componentCls), {\n    marginInlineStart: avatarGroupSpace\n  })), _$concat3));\n};\nexport default genComponentStyleHook('Avatar', function (token) {\n  var colorTextLightSolid = token.colorTextLightSolid,\n    controlHeight = token.controlHeight,\n    controlHeightLG = token.controlHeightLG,\n    controlHeightSM = token.controlHeightSM,\n    fontSize = token.fontSize,\n    fontSizeLG = token.fontSizeLG,\n    fontSizeXL = token.fontSizeXL,\n    fontSizeHeading3 = token.fontSizeHeading3,\n    marginXS = token.marginXS,\n    colorBorderBg = token.colorBorderBg,\n    colorTextPlaceholder = token.colorTextPlaceholder;\n  var avatarToken = mergeToken(token, {\n    avatarBg: colorTextPlaceholder,\n    avatarColor: colorTextLightSolid,\n    avatarSizeBase: controlHeight,\n    avatarSizeLG: controlHeightLG,\n    avatarSizeSM: controlHeightSM,\n    avatarFontSizeBase: Math.round((fontSizeLG + fontSizeXL) / 2),\n    avatarFontSizeLG: fontSizeHeading3,\n    avatarFontSizeSM: fontSize,\n    avatarGroupOverlapping: marginXS,\n    avatarGroupSpace: marginXS,\n    avatarGroupBorderColor: colorBorderBg\n  });\n  return [genBaseStyle(avatarToken), genGroupStyle(avatarToken)];\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","genBaseStyle","token","antCls","componentCls","iconCls","avatarBg","avatarColor","avatarSizeBase","avatarSizeLG","avatarSizeSM","avatarFontSizeBase","avatarFontSizeLG","avatarFontSizeSM","borderRadius","borderRadiusLG","borderRadiusSM","lineWidth","lineType","avatarSizeStyle","size","fontSize","radius","width","height","lineHeight","position","left","_skip_check_","value","transformOrigin","margin","Object","assign","display","overflow","color","whiteSpace","textAlign","verticalAlign","background","border","objectFit","genGroupStyle","avatarGroupBorderColor","avatarGroupOverlapping","avatarGroupSpace","borderColor","marginInlineStart","colorTextLightSolid","controlHeight","controlHeightLG","controlHeightSM","fontSizeLG","fontSizeXL","fontSizeHeading3","marginXS","colorBorderBg","colorTextPlaceholder","avatarToken","Math","round"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/avatar/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\nconst genBaseStyle = token => {\n  const {\n    antCls,\n    componentCls,\n    iconCls,\n    avatarBg,\n    avatarColor,\n    avatarSizeBase,\n    avatarSizeLG,\n    avatarSizeSM,\n    avatarFontSizeBase,\n    avatarFontSizeLG,\n    avatarFontSizeSM,\n    borderRadius,\n    borderRadiusLG,\n    borderRadiusSM,\n    lineWidth,\n    lineType\n  } = token;\n  // Avatar size style\n  const avatarSizeStyle = (size, fontSize, radius) => ({\n    width: size,\n    height: size,\n    lineHeight: `${size - lineWidth * 2}px`,\n    borderRadius: '50%',\n    [`&${componentCls}-square`]: {\n      borderRadius: radius\n    },\n    [`${componentCls}-string`]: {\n      position: 'absolute',\n      left: {\n        _skip_check_: true,\n        value: '50%'\n      },\n      transformOrigin: '0 center'\n    },\n    [`&${componentCls}-icon`]: {\n      fontSize,\n      [`> ${iconCls}`]: {\n        margin: 0\n      }\n    }\n  });\n  return {\n    [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'relative',\n      display: 'inline-block',\n      overflow: 'hidden',\n      color: avatarColor,\n      whiteSpace: 'nowrap',\n      textAlign: 'center',\n      verticalAlign: 'middle',\n      background: avatarBg,\n      border: `${lineWidth}px ${lineType} transparent`,\n      [`&-image`]: {\n        background: 'transparent'\n      },\n      [`${antCls}-image-img`]: {\n        display: 'block'\n      }\n    }), avatarSizeStyle(avatarSizeBase, avatarFontSizeBase, borderRadius)), {\n      [`&-lg`]: Object.assign({}, avatarSizeStyle(avatarSizeLG, avatarFontSizeLG, borderRadiusLG)),\n      [`&-sm`]: Object.assign({}, avatarSizeStyle(avatarSizeSM, avatarFontSizeSM, borderRadiusSM)),\n      '> img': {\n        display: 'block',\n        width: '100%',\n        height: '100%',\n        objectFit: 'cover'\n      }\n    })\n  };\n};\nconst genGroupStyle = token => {\n  const {\n    componentCls,\n    avatarGroupBorderColor,\n    avatarGroupOverlapping,\n    avatarGroupSpace\n  } = token;\n  return {\n    [`${componentCls}-group`]: {\n      display: 'inline-flex',\n      [`${componentCls}`]: {\n        borderColor: avatarGroupBorderColor,\n        [`&:not(:first-child)`]: {\n          marginInlineStart: -avatarGroupOverlapping\n        }\n      },\n      [`&-popover`]: {\n        [`${componentCls} + ${componentCls}`]: {\n          marginInlineStart: avatarGroupSpace\n        }\n      }\n    }\n  };\n};\nexport default genComponentStyleHook('Avatar', token => {\n  const {\n    colorTextLightSolid,\n    controlHeight,\n    controlHeightLG,\n    controlHeightSM,\n    fontSize,\n    fontSizeLG,\n    fontSizeXL,\n    fontSizeHeading3,\n    marginXS,\n    colorBorderBg,\n    colorTextPlaceholder\n  } = token;\n  const avatarToken = mergeToken(token, {\n    avatarBg: colorTextPlaceholder,\n    avatarColor: colorTextLightSolid,\n    avatarSizeBase: controlHeight,\n    avatarSizeLG: controlHeightLG,\n    avatarSizeSM: controlHeightSM,\n    avatarFontSizeBase: Math.round((fontSizeLG + fontSizeXL) / 2),\n    avatarFontSizeLG: fontSizeHeading3,\n    avatarFontSizeSM: fontSize,\n    avatarGroupOverlapping: marginXS,\n    avatarGroupSpace: marginXS,\n    avatarGroupBorderColor: colorBorderBg\n  });\n  return [genBaseStyle(avatarToken), genGroupStyle(avatarToken)];\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,cAAc,QAAQ,aAAa;AAC5C,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAGC,KAAK,EAAI;EAAA;EAC5B,IACEC,MAAM,GAgBJD,KAAK,CAhBPC,MAAM;IACNC,YAAY,GAeVF,KAAK,CAfPE,YAAY;IACZC,OAAO,GAcLH,KAAK,CAdPG,OAAO;IACPC,QAAQ,GAaNJ,KAAK,CAbPI,QAAQ;IACRC,WAAW,GAYTL,KAAK,CAZPK,WAAW;IACXC,cAAc,GAWZN,KAAK,CAXPM,cAAc;IACdC,YAAY,GAUVP,KAAK,CAVPO,YAAY;IACZC,YAAY,GASVR,KAAK,CATPQ,YAAY;IACZC,kBAAkB,GAQhBT,KAAK,CARPS,kBAAkB;IAClBC,gBAAgB,GAOdV,KAAK,CAPPU,gBAAgB;IAChBC,gBAAgB,GAMdX,KAAK,CANPW,gBAAgB;IAChBC,YAAY,GAKVZ,KAAK,CALPY,YAAY;IACZC,cAAc,GAIZb,KAAK,CAJPa,cAAc;IACdC,cAAc,GAGZd,KAAK,CAHPc,cAAc;IACdC,SAAS,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